<!--
 * @Author: cqg 
 * @Date: 2020-11-11 22:46:10
 * @LastEditors: cqg
 * @LastEditTime: 2020-12-30 09:47:22
 * @Description: file content
-->
<template>
  <basic-container>
    <dataList
      :pageInfo="pager"
      :listData="tableData"
      placeholder="请输入资产名称"
      searchName="keyword"
      @menu-click="handleMenuClick"
      :filterList="filterList"
      :menuList="['add', { export: '导出' }]"
    >
      <el-table ref="multipleTable" :data="tableData">
        <el-table-column label="资产占用单位" prop="assetOccupyingUnit" />
        <el-table-column label="填表日期" prop="registerDate" />
        <el-table-column label="登记单位" prop="registrationUnit" />
        <el-table-column label="建设单位" prop="constructionUnit" />
        <el-table-column label="项目建设地址" prop="constructionAddress" />
        <el-table-column label="操作" width="250px">
          <template slot-scope="scope">
            <el-button
              type="text"
              v-if="reg_edit"
              @click="$router.push({path: '/asset-management/registration-edit',query: { assetRegistrationId: scope.row.assetRegistrationId }})"
            >编辑</el-button>
            <el-button type="text" @click="deleteRow(scope)" v-if="reg_del">删除</el-button>
            <el-button type="text" @click="$refs.registrationSendMes.show()">发送提醒</el-button>
            <el-button type="text" @click="exportWordTem(scope)">导出表格</el-button>
          </template>
        </el-table-column>
      </el-table>
    </dataList>
    <registration-send-Mes ref="registrationSendMes"></registration-send-Mes>
  </basic-container>
</template>

<script src="./asset-registration-list.js"></script>
<style scoped lang="scss">
@import "./asset-registration-list";
</style>
